-- ------------------------------------------------------------------- --
-- provide diagnostic message sources injection & code actions to nvim --
-- ------------------------------------------------------------------- --

return {
    "nvimtools/none-ls.nvim",
    dependencies = {
        "nvimtools/none-ls-extras.nvim",
        -- "nvim-lua/plenary.nvim" -- neo-tree already in use
    },
    config = function()
        local null_ls = require("null-ls")

        null_ls.setup({
            sources = {
                null_ls.builtins.formatting.stylua,

                -- for bash
                -- null_ls.builtins.formatting.bashls,
                -- null_ls.builtins.completion.bashls,
                -- null_ls.builtins.diagnostics.bashls,
                null_ls.builtins.formatting.biome,
                null_ls.builtins.diagnostics.hadolint,
            },
        })
    end,
}
